﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 商品规格实体
    /// </summary>
    public class GsSpuSpecModel
    {
        /// <summary>
        /// 规格Id码
        /// </summary>
        public long pdtSpuSpecId { get; set; }
        /// <summary>
        /// 允许前台改价 0 是 1 否
        /// </summary>
        public int chgPrice { get; set; }
        /// <summary>
        /// 售价4
        /// </summary>
        public decimal commPrice { get; set; }
        /// <summary>
        /// 换算率
        /// </summary>
        public decimal converRate { get; set; }
        /// <summary>
        /// 逻辑删除标记 0：未删除 1：已删除
        /// </summary>
        public bool delFlag { get; set; }

        /// <summary>
        /// 允许前台折扣0 是 1 否
        /// </summary>
        public int disItem { get; set; }
        /// <summary>
        /// 是否积分0是1否
        /// </summary>
        public int integral { get; set; }

        public string isAsc { get; set; }
        /// <summary>
        /// 标准零售价
        /// </summary>
        public decimal saPrice { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public long spuId { get; set; }
        /// <summary>
        /// 条码
        /// </summary>
        public string spuSpecBarcode { get; set; }
        /// <summary>
        /// 规格代码
        /// </summary>
        public string spuSpecCode { get; set; }

        /// <summary>
        /// 规格名称
        /// </summary>
        public string spuSpecName { get; set; }
        /// <summary>
        /// 称重商品 0 是 1 否
        /// </summary>
        public int stand { get; set; }
        /// <summary>
        /// 是否停售0是 1否
        /// </summary>
        public int stopSaleFlag { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string uomName { get; set; }
        /// <summary>
        /// 售价2
        /// </summary>
        public decimal vipPrice { get; set; }
        /// <summary>
        /// 售价3
        /// </summary>
        public decimal vvipPrice { get; set; }

        /// <summary>
        /// 最低价
        /// </summary>
        public decimal? minPrice { get; set; } = 0;

        /// <summary>
        /// 最高价
        /// </summary>
        public decimal? maxPrice { get; set; } = 0;

        /// <summary>
        /// plu
        /// </summary>
        public int? plu { get; set; }

        /// <summary>
        /// 是否主单位0是1否
        /// </summary>
        public int? canDefault { get; set; }

        /// <summary>
        /// 应用渠道(0线下，1线上，2批发)
        /// </summary>
        public string useChannel { get; set; }
    }
}
